#!/usr/bin/env python

import sys, os

def init ( l, admin = 0 ):
	from liwe import parts

	#parts.add ( l.layman, [ "base" ] )

	l.layman.add_js ( "modules/payment/js/payment.js" )
	l.layman.add_css ( "modules/payment/gfx/payment.css" )

	l.layman.add_js_code ( "payment.init();" )

	if admin and int ( admin ):
		l.layman.add_js ( "modules/payment/js/payment.admin.js" )
		l.layman.add_css ( "modules/payment/gfx/payment.admin.css" )
		l.layman.add_js_code ( "payment.admin.init();" )

	return ''
